<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>客户信息记录系统</title>
    <link rel="stylesheet" type="text/css" href="easyui/themes/metro/easyui.css">
    <link rel="stylesheet" type="text/css" href="easyui/themes/icon.css">
    <script type="text/javascript" src="easyui/jquery.min.js"></script>
    <script type="text/javascript" src="easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="easyui/plugin/portal/jquery.portal.js"></script>
    <script type="text/javascript" src="easyui/plugin/easyui.resize.js"></script>
    <link rel="stylesheet" type="text/css" href="easyui/plugin/portal/portal.css">
    <link rel="stylesheet" type="text/css" href="css/style.css">
    <script type="text/javascript" src="easyui/easyui-lang-zh_CN.js"></script>
</head>
<body id="layout_body" class="easyui-layout">
<div data-options="region:'north',split:false" style="height:50px;background: #DDDDDD;overflow: hidden;">
    <a href="http://www.ranko.cn" style="margin:5px;display: inline-block;"><img src="css/logo.png" height="40px;"></a>
</div>
<div data-options="region:'west',title:'菜单栏',split:true" style="width:180px;">
    <ul class="easyui-tree" data-options="lines:true">
        <li data-options="state:'closed'" ><span>客户</span>
            <ul>
                <li><a href="javascript:showTab('客户','y.php?r=customer/index')">客户</a></li>
                <li><a href="javascript:showTab('联系人','y.php?r=contacter/index')">联系人</a></li>
                <li><a href="javascript:showTab('联系记录','y.php?r=contactlog/index')">联系记录</a></li>
                <li><a href="javascript:showTab('纪念日','y.php?r=memdays/index')">纪念日</a></li>
            </ul>
        </li>
        <li data-options="state:'closed'" ><span>售后</span>
            <ul>
                <li><a href="javascript:showTab('客户服务','y.php?r=accountrecordss/index')">客户服务</a></li>
                <li><a href="javascript:showTab('客户投诉','y.php?r=complaints/index')">客户投诉</a></li>
                <li><a href="javascript:showTab('常见问题','y.php?r=faq/index')">常见问题</a></li>
                <li><a href="javascript:showTab('常见问题分类','y.php?r=faqcategory/index')">常见问题分类</a></li>
            </ul>
        </li>
        <li data-options="state:'closed'" ><span>产品</span>
            <ul>
                <li><a href="javascript:showTab('产品','y.php?r=product/index')">产品</a></li>
                <li><a href="javascript:showTab('产品分类','y.php?r=productcategory/index')">产品分类</a></li>
            </ul>
        </li>
        <!--<li data-options="state:'closed'" ><span>库存</span>
            <ul>
                <li><a href="javascript:showTab('入库单','y.php?r=warehouses/index')">入库单</a></li>
                <li><a href="javascript:showTab('出库单','y.php?r=deliverys/index')">出库单</a></li>
                <li><a href="javascript:showTab('盘点','y.php?r=checks/index')">盘点</a></li>
                <li><a href="javascript:showTab('库存余额','y.php?r=balances/index')">库存余额</a></li>
                <li><a href="javascript:showTab('初始化库存','y.php?r=prdtnums/index')">初始化库存</a></li>
                <li><a href="javascript:showTab('库间调拨','y.php?r=warehousetransfers/index')">库间调拨</a></li>
                <li><a href="javascript:showTab('库存流水账','y.php?r=wareledgers/index')">库存流水账</a></li>
            </ul>
        </li>-->
    </ul>
</div>
<div data-options="region:'center',border:false">
    <div id="win_main" class="easyui-window" title=""
         data-options="modal:true,closed:true" style="padding: 10px;">
    </div>
    <div class="easyui-tabs"  data-options="fit:'true'"  id="sys_tab"  >

    </div>
</div>
<script>
    $(function(){
        $('#sys_tab').tabs('add',{
            'title':'首页',
            'href':'y.php?r=site/index'
        });
        $('#layout_body').layout('hidden','east');
//        $('#layout_body').layout('unsplit','east');
    });
    function showTab(title,url) {
        var tab = $('#sys_tab').tabs('getTab',title);
        if(tab!=null){
            $('#sys_tab').tabs('select',title);
        }else{
            $('#sys_tab').tabs('add',{
                'title':title,
                'href':url,
                'closable':true
            });
            $('#layout_body').layout('hidden','east');
        }
    }
    function layoutresize() {
        $("body").onresize(function () {
            $('#layout_body').layout("resize");
        });
    }
    function loadWin(title,url) {
        $('#win_main').window({
            width:$(window).width()*0.618,
            height:$(window).height()*0.618,
            modal:true,
            title:title,
            href:url,
            collapsible:false,
            minimizable:false,
            maximizable:false
        });
        $('#win_main').window('center');
        $('#win_main').window('open');
    }
</script>
</body>
</html>
